<%-- 
    Document   : ecGestionPatrocinador
    Created on : 01/11/2009, 10:56:55 PM
    Author     : Liz Alvarez
--%>
<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="true" import="java.util.List"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>.::Incubadora de Empresas::. Invierta con nosotros</title>
        
         <%@ page 
         
         import="pe.edu.unmsm.fisi.ceiecbt.ejb.beans.ComtbPatrocinadorFacade"
         import="pe.edu.unmsm.fisi.ceiecbt.ejb.beans.ComtbPatrocinadorFacadeRemote"
         import ="pe.edu.unmsm.fisi.ceiecbt.ejb.entidad.ComtbEmpresa"
         import ="pe.edu.unmsm.fisi.ceiecbt.ejb.beans.PortafolioInversionRemote"
         import ="pe.edu.unmsm.fisi.ceiecbt.ejb.entidad.ComtbDetalleInversion"
         

	 import="java.util.*" 
         import="javax.naming.*" 
         import="javax.rmi.PortableRemoteObject"
         import="javax.ejb.*"
         import= "javax.ejb.EJB"
         

%>
        
           <%@include file="jspf/links.jspf"%>
        
        <style type="text/css">
            #s5_mainbackmiddle {
                width:950px;}
            
            #s5_topback {
                width:926px;}
            
            #s5_bottomtop {
                width:926px;}
            
            #s5_bottommiddle {
                width:926px;}
            
            #s5_maininner {
                width:904px;}
            
            #s5_footer {
                width:950px;}
            
            #s5_topleftbottom {
                width:926px;}
            
            #s5_mainbody {
                width:632px;}
            
        </style>  
        
    </head>
    <body>
        <div id="s5_background"> 
            <div id="s5_topbackground"> 
                
                <div id="s5_topback"> 
                    <div id="s5_topleft">
                        <div class="s5_topblock">
                            <div id="s5_logo" style="cursor:pointer;">
                                <embed height="76" width="312" flashvars="width=252&amp;height=118&amp;wmode=transparent" wmode="transparent" allowfullscreen="true" quality="high" name="mediaplayer" id="mediaplayer" style="" src="<%=request.getContextPath()%>/flash/banner.swf" type="application/x-shockwave-flash" /> 
                            </div>
                        </div>	
                        
                    </div>
                    
                    <div id="s5_topright">
                        <div class="s5_topblock">
                            <div id="s5_search">
                                <div style="position:relative;">
                                    <div class="moduletable">
                                        
                                        <form action="" method="get">
                                            <div class="search">
                                            <input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="Buscar..."  onblur="if(this.value=='') this.value='Buscar...';" onfocus="if(this.value=='Buscar...') this.value='';" />	</div>
                                            
                                            <input type="hidden" name="option" value="com_search" />
                                            <input type="hidden" name="Itemid" value="5" />	
                                    </form>		</div>
                                </div>
                            </div>
                        </div>	
                    </div>
                </div>
                
                <%@include file="jspf/menu_uhead.jspf"%>
                

<%

HttpSession sesion_act=request.getSession(true);

String usr=(String) sesion_act.getAttribute("user");

if(usr!=null){
        
if(usr.equals("liz")){

%>

<div id="s5_s5boxtab" onclick="">
    <div id="s5_s5boxleft"></div>
    <div id="s5_s5boxmiddle">
    <a href="CerrarSesion">Cerrar Sesión</a>							</div>							</div>
    <div id="s5_s5boxright"></div>						
</div>

<%
}
else{
    
    %>
    
    <div id="s5_s5boxtab" onclick="">
    <div id="s5_s5boxleft"></div>
    <div id="s5_s5boxmiddle">
    Iniciar Sesión							</div>
    <div id="s5_s5boxright"></div>						
</div>
    
    <%
}

%>


<%

}
else{


%>
<div id="s5_s5boxtab" onclick="">
    <div id="s5_s5boxleft"></div>
    <div id="s5_s5boxmiddle">
    Iniciar Sesión							</div>
    <div id="s5_s5boxright"></div>						
</div>
<%
}
%>



            </div>
            
            <div class="clear:both;"></div>
            
            <div id="s5_topbackbottombar"></div>
            
        </div>
        
        
        <div id="s5_mainbodywrapper">		
            <div id="s5_mainbackmiddle">	
                <div id="s5_maininnerleft"></div>	
                <div id="s5_maininner">
                    
                    
                    <%@include file="jspf/menu_aright_1.jspf"%>
                    
                    <div style="margin-right:252px;">
                        
                        <div id="s5_maincolumn" style="width:650px;">
                            
                            
                            
                            <div id="s5_leftmainwrap">
                                <div id="s5_maincolumn_top">
                                    <div id="s5_maincolumn_top_left"></div>
                                    <div id="s5_maincolumn_top_right"></div>
                                </div>
                                <div id="s5_maincolumn_wrap">
                                    
                                    <div id="s5_positions">
                                        
                                        <div id="s5_user1_100">
                                            <div class="module">
                                                <div>
                                                    <div>
     
<form action="regNuevoPat.jsp"  method="post">
                           
                 <!--<table cellspacing="0" cellpadding="2" border="0" width="100%" class="productListing">
  <tbody><tr>
    <td align="center" class="productListing-heading" bgcolor="#666666;">Quitar</td>
    <td class="productListing-heading">Producto(s)</td>
    <td align="center" class="productListing-heading">Monto</td>
    <td align="center" class="productListing-heading">Inversion</td>
    <td align="right" class="productListing-heading">Total</td>
  </tr>
  <tr class="productListing-even">
    <td valign="top" align="center" class="productListing-data"><input type="checkbox" value="36" name="cart_delete[]"/></td>
    <td class="productListing-data">
        <table cellspacing="2" cellpadding="2" border="0">  <tbody><tr>    <td align="center" class="productListing-data"><a href="#"><img height="90" border="0" width="160" title=" bibidi " alt="bibidi" src="imagenes/acklis.gif"/></a></td>  
    <td valign="top" class="productListing-data"><a href="#"><b>SHELL</b></a>    </td>  </tr>
    </tbody>
    </table>
    </td>
    <td valign="top" align="right" class="productListing-data"><b>S/. 80000.5</b></td>
    <td valign="top" align="center" class="productListing-data"><input type="text" size="4" value="1" name="cart_quantity[]"/><input type="hidden" value="36" name="products_id[]"/></td>
    <td valign="top" align="right" class="productListing-data"><b>S/. 5000.0</b></td>
  </tr>
</tbody></table>-->



<table cellspacing="2" cellpadding="4" border="0" width="100%">
  <tbody>
      
      <tr align="left" class="sectiontableheader">
	<th>Empresa</th>
	<th>Codigo</th>
	<th>Monto</th>
	<th>Perfil</th>
	<th>Tipo Patrocinio</th>
	<th>Monto Necesario</th>
	<th align="center" colspan="2">Actualizar</th>
       
  </tr>
  
  <%
  
  PortafolioInversionRemote portinv=(PortafolioInversionRemote) sesion_act.getAttribute("PortafolioInversionBean");
   float total=0;
  if(portinv!=null){
  
    ArrayList<ComtbDetalleInversion> abc=portinv.getInversion();
 
    
    for(int i=0;i<abc.size();i++){
  
  //String n=(ComtbDetalleInversion)abc.get(i).getEmprevCodEmpresa().getEmprerMonto()
  //  String a=abc(0)(0).toString() 
total=abc.get(i).getDetinvrMonto()+total;
               
        %>
        
          
  <tr valign="top" class="sectiontableentry1">
	<td>
            <a href="#"><strong><%=abc.get(i).getEmprevCodEmpresa().getEmprevRazSocial().toString()%></strong></a>
            <br/>
            
            
            </td>
    <td><%=abc.get(i).getEmprevCodEmpresa().getEmprevCodEmpresa()%></td>
    <td><%=abc.get(i).getDetinvrMonto()%></td>
    <td>Perfil <%=abc.get(i).getDetinviPerfil()%></td>
    
    <%
    int tippat= abc.get(i).getDetinviTipoInv();
  
  if(tippat==1){
      
      %>
      <td>Accionista</td>
      
      
      <%
      
  }
  else{
      %>
      <td>Inversionista</td>     
      
      <%
      
  }
      
      
    
    %>

    <td>S./ <%=abc.get(i).getEmprevCodEmpresa().getEmprerMonto()%></td>
    <td><input type="hidden" value="shop.cart" name="page"/>
        <input type="hidden" value="cartUpdate" name="func"/>
        <input type="hidden" value="11" name="product_id"/>
        <input type="hidden" value="73" name="Itemid"/>
        <input type="hidden" value="" name="description"/>
        <input type="image" border="0" alt="Update" src="http://www.shape5.com/demo/emercantilism/components/com_virtuemart/shop_image/ps_image/edit_f2.gif" title="Update Quantity In Cart" name="update"/>
      </td>
    <td><form name="delete" method="post" action="http://www.shape5.com/demo/emercantilism/index.php">
        <input type="hidden" value="com_virtuemart" name="option"/>
        <input type="hidden" value="shop.cart" name="page"/>
        <input type="hidden" value="73" name="Itemid"/>
        <input type="hidden" value="cartDelete" name="func"/>
        <input type="hidden" value="11" name="product_id"/>
        <input type="hidden" value="" name="description"/>
      <input type="image" border="0" alt="Delete Product From Cart" src="http://www.shape5.com/demo/emercantilism/components/com_virtuemart/shop_image/ps_image/delete_f2.gif" title="Delete Product From Cart" name="delete"/>
      </form></td>
  </tr>
        
        
        
        
        
        
        <%
        
    }
  
      
  }
  
 
  %>
  

  
  
  
  
<!--Begin of SubTotal, Tax, Shipping, Coupon Discount and Total listing -->
  <tr class="sectiontableentry2">
    <td align="right" colspan="4">Subtotal:</td> 
    <td colspan="3"><%=total%></td>
  </tr>
  <tr>
    <td colspan="3"> </td>
    <td colspan="4"><hr/></td>
  </tr>
  <tr>
    <td align="right" colspan="4">Total: </td>
    <td colspan="3"><strong><%=total%></strong>
    </td>
  </tr>
  <tr class="sectiontableentry2">
	<td valign="top" align="right" colspan="4">Tax Total: </td> 
	<td colspan="3">S/. 0.00</td>
  </tr>
  <tr>
    <td colspan="7"><hr/></td>
  </tr>
</tbody></table>
<br/>


 <table cellspacing="0" cellpadding="2" border="0" width="100%" class="productListing">
  <tbody><tr>
    <td><table cellspacing="0" cellpadding="2" border="0" width="100%">
              <tbody><tr>
                <td width="10"><img height="1" border="0" width="10" alt="" src="images/pixel_trans.gif"/></td>
                <td class="main"><input type="image" border="0" title=" Actualizar Cesta " alt="Actualizar Cesta" src="includes/languages/espanol/images/buttons/button_update_cart.gif"/></td>
                <td class="main"><a href="http://marketing2009.freehostia.com/tienda/product_info.php?cPath=22&amp;products_id=36"><img height="22" border="0" width="166" title=" Seguir Comprando " alt="Seguir Comprando" src="includes/languages/espanol/images/buttons/button_continue_shopping.gif"/></a></td>
                <td align="right" class="main"><a href="RegistrarPatrocinador"><img height="22" border="0" width="143" title=" Realizar Pedido " alt="Realizar Pedido" src="includes/languages/espanol/images/buttons/button_checkout.gif"/></a></td>
                <td width="10"><img height="1" border="0" width="10" alt="" src="images/pixel_trans.gif"/></td>
              </tr>
            </tbody></table></td>
</tr>
</tbody>
</table>

        
    
</form> 
              </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <div style="clear:both;"></div>
                                    <div id="s5_mainbody">
                                        
                                        <table width="100%" cellspacing="0" cellpadding="0">  
                                            <tr>
                                                <td class="componentheading" colspan="4"></td>
                                            </tr>
                                            
                                        </table>
                                        
                                    </div>
                                    
                                </div>
                                <div id="s5_maincolumn_bottom">
                                    <div id="s5_maincolumn_bottom_left"></div>
                                    <div id="s5_maincolumn_bottom_right"></div>
                                </div>
                            </div>	
                            
                            
                        </div>
                        
                        <div style="float:left;height:19px;width:100%;"></div>
                        
                        
                    </div>
                    
                    <div style="clear:both;"></div>
                    
                    
                </div>
                
                
                
                
                
                <div id="s5_maininnerright"></div>		
                
                
            </div>
            
            
            <%@include file="jspf/afooter.jspf"%>
        </div>
        
    </body>
</html>
